<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Remove Contact</title>
</head>
<body>
	<form action="RemoveContact" method="get">
	   <jsp:directive.page import="com.limeng.domain.DAOContact">
	   <jsp:directive.page import="java.util.List">
	   <jsp:directive.page import="com.limeng.model.Contact">
	   <%
	   List<Contact> contactList=DAOContact.getInstance().getAllContact(); 
	   out.write("<table>");
	   for(Contact contact: contactList)
	   {
		   out.write("<tr>");
		   out.write("<td><input type=\"radio\"</input>");
		   out.write("<td>"+contact.getContactID()+"</td>");
		   out.write("<td>"+contact.getFirstName()+"</td>");
		   out.write("<td>"+contact.getLastName()+"</td>");
		   out.write("<td>"+contact.getEmail()+"</td>");
		   out.write("</tr>");
	   }
	   out.write("</table>");
	   %>
	<input type="submit" value="submit"></input>
	<input type="button" onclick=""></input>
	
	</form>
</body>
</html>